package com.financing.wap.dao;

import java.math.BigDecimal;
import java.util.List;

import com.financing.wap.dto.ActivitiesGroupDTO;
import com.financing.wap.vo.ActivitiesGroupVO;


public interface IActivitiesGroupDao extends IBaseDao<ActivitiesGroupDTO, Integer> {

	/**
	 * 查询组团信息
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupDTO> queryActivitiesGroup(ActivitiesGroupDTO agd) throws Exception;

	/**
	 * 添加团队或团队成员
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public int addActivitiesGroup(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 更新团队信息
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public int updateActivitiesGroup(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询团队成功认证人数
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queryActivitiesGroupSuccess(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询分享页面团基本信息
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queryShareActivitiesGroup(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询团成员信息
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queryActivitiesGroupMemberInfo(ActivitiesGroupDTO agd)throws Exception;
	
	/**
	 * 查询发放金额信息
	 * @param adg
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queyActivitiesGroupGift(ActivitiesGroupDTO adg) throws Exception;
	
	/**
	 * 查询用户未领取的红包总额
	 * @param adg
	 * @return
	 * @throws Exception
	 */
	public BigDecimal queryOneUserNotGetGiftAmount(ActivitiesGroupDTO adg) throws Exception;
	
	/**
	 * 查询用户所有zt1000红包总金额
	 * @param adg
	 * @return
	 * @throws Exception
	 */
	public BigDecimal queryOneUserAllGiftAmount(ActivitiesGroupDTO adg) throws Exception;
	
	/**
	 * 查询需要定时任务处理的团
	 * @param adg
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queryActivitiesGroupJob(ActivitiesGroupDTO adg) throws Exception;
	
	/**
	 * 修改团名称
	 * @param adg
	 * @return
	 * @throws Exception
	 */
	public int updateActivitiesGroupName(ActivitiesGroupDTO adg) throws Exception;
}
